Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve performance for large printer_blacklist entries #518

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

serenity4
Copy link
Contributor

@serenity4 serenity4 commented Nov 28, 2024

Regular expressions were compiled on the fly for every entry in printer_blacklist every time a new node needed to see if its symbol was blacklisted.

This dramatically speeds up expression printing when there are more than a few entries in printer_blacklist, which prior to this change jumped from a total of ~20 seconds to several minutes when wrapping a large API (and after this change is back to ~20 seconds for this specific case).

@Gnimuc
Copy link
Member

Gnimuc commented Dec 7, 2024

re-triggered tests

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants